package com.sixth.controller;

import com.sixth.service.BottomService;
import com.sixth.service.HeadNavService;
import com.sixth.service.LinkService;
import com.sixth.service.ZoneService;
import com.sixth.until.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: self-tui-education
 * @description:
 * @author: 高振杨
 * @create: 2022-05-06 15:04
 **/
@RestController
@RequestMapping("/home/qian")
public class QianZoneController {
    @Autowired
    private HeadNavService headNavService;
    @Autowired
    private LinkService linkService;
    @Autowired
    private ZoneService zoneService;
    @Autowired
    private BottomService bottomService;
    @GetMapping("/zone/getAllQianZone")
    public CommonResult getAllQianZone(){
        return zoneService.getAllQianZone();
    }

    @GetMapping("/zone/getAllQianMenu")
    public CommonResult getAllQianMenu(){
        return zoneService.getAllQianMenu();
    }

    @GetMapping("/banner/getQianBanner")
    public CommonResult getQianBanner(){
        return zoneService.getQianBanner();
    }

    @GetMapping("/bottomArticle/getQianAllBottomArticle")
    public CommonResult getQianAllBottomArticle(){
        return bottomService.getQianAllBottomArticle();
    }
    @GetMapping("/link/getQianLink")
    public CommonResult getQianLink(){
        return linkService.getQianLink();
    }
    @GetMapping("/head/getAllHead")
    public CommonResult getAllHead(){
        return headNavService.getAllHead();
    }
}
